package com.yyq.gxdc.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.pagehelper.PageInfo;
import com.yyq.gxdc.entity.ReceivingAddress;

public interface IReceivingAddressService {
    /**
     * 分页查询
     * @param dish 查询条件
     * @return
     */
    public PageInfo<ReceivingAddress> findPage(ReceivingAddress dish, int pageNum, int pageSize);

    public IPage<ReceivingAddress> getAllReceivingAddress(Page<ReceivingAddress> page, ReceivingAddress dish);


    /**
     * 添加
     * @param route
     * @return
     */
    public int add(ReceivingAddress receivingAddress);

    /**
     * 根据ID查询用户
     * @param id
     * @return
     */
    public ReceivingAddress findById(Integer id);
    /**
     * 修改
     * @param dish
     * @return
     */
    public int update(ReceivingAddress receivingAddress);
    /**
     * 删除
     * @param id
     * @return
     */
    public int delete(Integer id);

    /**
     * 详情
     * @param rid
     * @return
     */
    public ReceivingAddress getDetailByRid(Integer rid);

}
